package com.ruoyi.project.seeDoctor.domain;

import com.ruoyi.framework.web.domain.BaseEntity;
import io.swagger.models.auth.In;

import java.util.Objects;

public class SysDepts extends BaseEntity {
    private Integer depts_id;
    private String depts_name;
    private String depts_code;
    private Integer depts_num;
    private String depts_leader;
    private String depts_phone;
    private Integer status;

    @Override
    public String toString() {
        return "SysDepts{" +
                "depts_id=" + depts_id +
                ", depts_name='" + depts_name + '\'' +
                ", depts_code='" + depts_code + '\'' +
                ", depts_num=" + depts_num +
                ", depts_leader='" + depts_leader + '\'' +
                ", depts_phone='" + depts_phone + '\'' +
                ", status=" + status +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysDepts sysDepts = (SysDepts) o;
        return Objects.equals(depts_id, sysDepts.depts_id) &&
                Objects.equals(depts_name, sysDepts.depts_name) &&
                Objects.equals(depts_code, sysDepts.depts_code) &&
                Objects.equals(depts_num, sysDepts.depts_num) &&
                Objects.equals(depts_leader, sysDepts.depts_leader) &&
                Objects.equals(depts_phone, sysDepts.depts_phone) &&
                Objects.equals(status, sysDepts.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(depts_id, depts_name, depts_code, depts_num, depts_leader, depts_phone, status);
    }

    public Integer getDepts_id() {
        return depts_id;
    }

    public void setDepts_id(Integer depts_id) {
        this.depts_id = depts_id;
    }

    public String getDepts_name() {
        return depts_name;
    }

    public void setDepts_name(String depts_name) {
        this.depts_name = depts_name;
    }

    public String getDepts_code() {
        return depts_code;
    }

    public void setDepts_code(String depts_code) {
        this.depts_code = depts_code;
    }

    public Integer getDepts_num() {
        return depts_num;
    }

    public void setDepts_num(Integer depts_num) {
        this.depts_num = depts_num;
    }

    public String getDepts_leader() {
        return depts_leader;
    }

    public void setDepts_leader(String depts_leader) {
        this.depts_leader = depts_leader;
    }

    public String getDepts_phone() {
        return depts_phone;
    }

    public void setDepts_phone(String depts_phone) {
        this.depts_phone = depts_phone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public SysDepts() {
    }

    public SysDepts(Integer depts_id, String depts_name, String depts_code, Integer depts_num, String depts_leader, String depts_phone, Integer status) {
        this.depts_id = depts_id;
        this.depts_name = depts_name;
        this.depts_code = depts_code;
        this.depts_num = depts_num;
        this.depts_leader = depts_leader;
        this.depts_phone = depts_phone;
        this.status = status;
    }
}
